package com.cw.jeeyt.dao.mapper.mdata;

import java.util.List;

import com.cw.jeeyt.dao.model.mdata.MdataAreaDo;
import com.cw.lang.common.mapper.common.CommonMapper;

/**
 * 地区mapper
 *
 * @author admin
 * @date 2021-03-26 22:30:39
 */
public interface MdataAreaMapper extends CommonMapper<MdataAreaDo> {
    /**
     * 查询所有省，直辖市
     * @return
     */
    List<MdataAreaDo> queryAllProvinceCode();

    /**
     * 根据省份编码查询所有市编码
     *
     * @param provinceCode
     * @return
     */
    List<MdataAreaDo> queryAllCityCodeByProvinceCode(String provinceCode);

    /**
     * 根据市编码查询所有区，县编码
     *
     * @param cityCode
     * @return
     */
    List<MdataAreaDo> queryAllAreaCodeByCityCode(String cityCode);
}